يرجى تحويل $0 إلى الحساب البنكي التالي:
هام: يرجى
تضمين رقم
المرجع الخاص بك في وصف التحويل لضمان تخصيص الأموال بشكل صحيح.
File
(optional)
المبلغ المطلوب إرساله
-- USDT
≈ $0.00
دولار
أمريكي
هام: أرسل فقط USDT إلى هذا
العنوان.
قد يؤدي إرسال أي عملة رقمية أخرى إلى فقدان الأموال نهائيًا. سيتم إضافة الدفع إلى
حسابك بعد تأكيد الشبكة.
File
(optional)
// Copy Wallet Address Logic
const mobileCopyBtn = document.getElementById('mobile-copy-wallet-btn');
const mobileWalletAddress = document.getElementById('mobile-wallet-address');
if (mobileCopyBtn && mobileWalletAddress) {
mobileCopyBtn.addEventListener('click', () => {
const textToCopy = mobileWalletAddress.textContent.trim();
// Try using Clipboard API
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(textToCopy).then(() => {
showCopyFeedback(mobileCopyBtn);
}).catch(err => {
console.error('Clipboard API failed: ', err);
fallbackCopyTextToClipboard(textToCopy, mobileCopyBtn);
});
} else {
fallbackCopyTextToClipboard(textToCopy, mobileCopyBtn);
}
});
}
// Bank Details Copy Logic
const bankCopyMap = {
'mobile-copy-bank-name-btn': 'mobile-bank-name-val',
'mobile-copy-account-number-btn': 'mobile-account-number-val',
'mobile-copy-routing-number-btn': 'mobile-routing-number-val',
'mobile-copy-swift-code-btn': 'mobile-swift-code-val',
'mobile-copy-reference-btn': 'mobile-reference-val',
'mobile-copy-account-name-btn': 'mobile-account-name-val'
};
Object.keys(bankCopyMap).forEach(btnId => {
const btn = document.getElementById(btnId);
const valInput = document.getElementById(bankCopyMap[btnId]);
if (btn && valInput) {
btn.addEventListener('click', (e) => {
e.preventDefault();
const textToCopy = valInput.value.trim();
if (navigator.clipboard && navigator.clipboard.writeText) {
navigator.clipboard.writeText(textToCopy).then(() => {
showCopyFeedback(btn);
}).catch(err => {
console.error('Clipboard API failed: ', err);
fallbackCopyTextToClipboard(textToCopy, btn);
});
} else {
fallbackCopyTextToClipboard(textToCopy, btn);
}
});
}
});
function showCopyFeedback(btn) {
const originalIcon = btn.innerHTML;
btn.innerHTML = '
';
setTimeout(() => {
btn.innerHTML = originalIcon;
}, 2000);
}
function fallbackCopyTextToClipboard(text, btn) {
const textArea = document.createElement("textarea");
textArea.value = text;
// Ensure it's not visible but part of the DOM
textArea.style.position = "fixed";
textArea.style.left = "-9999px";
textArea.style.top = "0";
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
const successful = document.execCommand('copy');
if (successful) {
showCopyFeedback(btn);
} else {
console.error('Fallback copy failed.');
}
} catch (err) {
console.error('Fallback copy error: ', err);
}
document.body.removeChild(textArea);
}
});